﻿@model xiushen.Domain.Chapter
@{
    ViewBag.Title = "Content";
}
<ul class="breadcrumb">
    <li><a href="@Url.Action("Category")">分类</a> <span class="divider">/</span> </li>
    <li><a href="@Url.Action("Books", new { id = Model.CategoryID })">@Model.Category.Name</a>
        <span class="divider">/</span></li>
    <li><a href="@Url.Action("Chapters", new { bookId = Model.BookID, categoryId = Model.CategoryID })">@Model.Book.Name</a>
        <span class="divider">/</span> </li>
    <li class="active">@Model.Name</li>
</ul>
<div class="pull-right">
    @if (Model.ID > 1)
    {
        <a href="@Url.Action("Content", new { bookId = Model.BookID, chapterId = Model.ID - 1, categoryId = Model.CategoryID })">
            上一章</a> 
        
    }
    <a href="@Url.Action("Chapters", new { bookId = Model.BookID, categoryId = Model.CategoryID })">主目录</a>
     @if (Model.ID < Model.Book.Chapter.Count)
    {
        <a href="@Url.Action("Content", new { bookId = Model.BookID, chapterId = Model.ID + 1, categoryId = Model.CategoryID })">
            下一章</a> 
        
    }
   
</div>
<h2 class="pagination-centered">
    @Model.Name</h2>
 @Html.Raw(Model.Content)
<span class="dashLine"></span>

<div class="pagination-centered">
    @if (Model.ID > 1)
    {
        <a href="@Url.Action("Content", new { bookId = Model.BookID, chapterId = Model.ID - 1, categoryId = Model.CategoryID })">
            上一章</a> 
        
    }
    <a href="@Url.Action("Chapters", new { bookId = Model.BookID, categoryId = Model.CategoryID })">主目录</a>
     @if (Model.ID < Model.Book.Chapter.Count)
    {
        <a href="@Url.Action("Content", new { bookId = Model.BookID, chapterId = Model.ID + 1, categoryId = Model.CategoryID })">
            下一章</a> 
        
    }
   
</div>
